Fix bug #10159 with crashes in auto-complete package.
authorEli Zaretskii <eliz@gnu.org>
Sat, 22 Sep 2012 12:31:05 +0000 (15:31 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 22 Sep 2012 12:31:05 +0000 (15:31 +0300)
commitb0d02f390640a3e3866fc61c0f71be897f3cd22e
treeb1265463084486dadc265a024ba3791dcad523c9
parent4b3a3bc2dd3f6e756803e133dbf74d390e8b0b8d
Fix bug #10159 with crashes in auto-complete package.

 src/xdisp.c (next_overlay_string): Initialize it->end_charpos for
 the new overlay string.  Otherwise, the call to composition_compute_stop_pos
 in compute_stop_pos uses a wrong it->end_charpos value, and crashes because
 it runs off the end of the overlay string.
src/ChangeLog
src/xdisp.c